/*
 * @Description:
 * @Author:
 * @Date: 2024-10-27 12:54:05
 * @LastEditTime: 2024-12-09 00:25:49
 * @LastEditors: XXX
 */
import type { createApp } from "vue";
import * as Icons from '@element-plus/icons-vue'

type Key = keyof typeof Icons

export default function loadComponent (app: ReturnType<typeof createApp>) {
  const keys = Object.keys(Icons) as Key[]
  keys.forEach(key => {
    app.component(key, Icons[key])
  })
}
